add support for mini_httpd auth
authorNicolas Thill <[email protected]>
Wed, 19 Oct 2005 00:59:02 +0000 (00:59 +0000)
committerNicolas Thill <[email protected]>
Wed, 19 Oct 2005 00:59:02 +0000 (00:59 +0000)
SVN-Revision: 2175

openwrt/package/webif/files/usr/lib/webif/webif.sh

index f624720db9df443bbab419f16fdfcf359e47be54..18e75dd6fc0e9d809d7e3a8b2bc41c60d547d320 100644 (file)
@@ -195,6 +195,10 @@ apply_passwd() {
                        grep root /etc/passwd | cut -d: -f1,2 >> /etc/httpd.conf
                        killall -HUP httpd
                        ;;
+               mini_httpd/*)
+                       grep root /etc/passwd | cut -d: -f1,2 > $cgidir/.htpasswd
+                       killall -HUP mini_httpd
+                       ;;
        esac
 }